package tests;

import common.AutotestUtils;
import org.openqa.selenium.By;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-02-23
 * Time: 15:25
 */
public class EditPage extends AutotestUtils {
    public static String url = "http://39.105.158.244:8080/blog_edit.html";
    public EditPage(){
        super(url);
    }

    /**
     * 检查写博客是否能正常发布
     */
    public void editSuc(){

        driver.findElement(By.cssSelector("#title")).sendKeys("我是大大怪");

        driver.findElement(By.cssSelector("#submit")).click();
    }
}
